package demo;

import cn.hutool.core.io.FileUtil;
import top.lingkang.finalgateway.config.GatewayConfig;
import top.lingkang.finalgateway.utils.ConfigUtils;

import java.nio.charset.StandardCharsets;

/**
 * @author lingkang
 * @create by 2024/4/30 16:44
 */
public class Demo23 {
    public static void main(String[] args) throws Exception {
        String file = "C:\\Users\\Administrator\\Desktop\\project\\git\\final-gateway\\conf\\config.xml";
        GatewayConfig gatewayConfig = ConfigUtils.loadXML(FileUtil.readString(file, StandardCharsets.UTF_8));
        System.out.println(gatewayConfig);
    }
}
